import { HOME } from '../actionTypes';

const initialState = {
  sideCategory: [],
  sideArticle: [],
  article: {},
  categoryPath: [],
  categoryArticles: {},
  protocol: '',
  modal: true,
  my: '',
  uid: '',
};

const test = (state = initialState, action) => {
  if (action.type === HOME) {
    return { ...state, ...action.payload };
  }
  return state;
};

export default test;
